package com.carp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("carp_file")
public class CarpFile implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String fileUrl;
    private String fileMd5;

    @TableLogic //逻辑删除注解,还要配合config的配置类
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
